package com.zx.ishopping.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * 商品实体类
 * @author 祝鑫
 * @date 2025/6/21
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class Products implements Serializable {
   
    private static final long serialVersionUID = 1L;
    private Long id;
    private String name;
    private String description;
    private String imageUrl;
    private Integer stock;//存货数量
    private int status;//商品上架状态，上架和下架
    private BigDecimal price;// 1为起售 2 为停售 
    private Long popularity;//人气数
    private Long categoryId;
    private BigInteger version;
    private LocalDateTime createTime;
    private LocalDateTime updateTime;
    private Long createUser;
}
